<template>
	<view class="container">
		<view class="cui_fahuo">
			<view class="flex flex-align flex-center">
				<tui-icon name='circle-fill' color="#bbe68d" :size="60"></tui-icon>
			</view>
			<view class="wenzi">订单支付成功</view>
			<view class="wenzi1 uni-text-gray">实付金额 : ￥{{money}}</view>
			<view class="flex flex-align flex-center">
				<view class="btn wuliu" @click="go_url('/pages/dingdan/dingdan')">查看订单</view>
				<view class="btn wuliu" style="margin-left: 60rpx;" @click="go_index">返回首页</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello',
				money:0
			}
		},
		onLoad(e) {
			let that = this
			that.money =e.money
		},
		methods: {
			go_url(e){
				console.log(e)
				let that = this
				uni.redirectTo({
					url:'/pages/dingdan/dingdan?type=2'
				})
			},
			go_index(){
				uni.switchTab({
					url:'/pages/index/index'
				})
			}
		}
	}
</script>

<style lang="scss">
	.cui_fahuo{padding: 100rpx 0;text-align: center;
		.wenzi{font-weight: bold;font-size: 32rpx;margin:30rpx 0;}
		.wenzi1{margin-bottom: 140rpx;}
		.btn{padding: 0 50rpx;line-height: 80rpx;height: 80rpx;}
		.wuliu{background: #fff;color: #333;border: 1px solid #333;}
	}
</style>